package com.scorpio.goods.dto;

import com.scorpio.common.utils.treenode.TreeNode;
import com.scorpio.common.utils.treenode.TreeNodeType;

import javax.validation.constraints.NotNull;
import java.util.List;

public class GoodsCategoryMiniDTO {

    @TreeNode(TreeNodeType.ID)
    private Long id;

    @TreeNode(TreeNodeType.ParentId)
    private Long pid;

    private String text;

    @TreeNode(TreeNodeType.Children)
    private List<GoodsCategoryMiniDTO> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public List<GoodsCategoryMiniDTO> getChildren() {
        return children;
    }

    public void setChildren(List<GoodsCategoryMiniDTO> children) {
        this.children = children;
    }
}
